// src/common/dto/paginated-query.dto.ts
import { Type } from "class-transformer";
import { IsInt, Min } from "class-validator";

export class PaginatedDto {
    /** 当前页码 */
    @IsInt()
    @Min(1)
    @Type(() => Number)
    pageNum!: number;

    /** 每页条数 */
    @IsInt()
    @Min(1)
    @Type(() => Number)
    pageSize!: number;
}
